
from pydantic import BaseModel, EmailStr
from typing import Optional, List
from datetime import date

class ITEDetailBase(BaseModel):
    scholar_id: Optional[str]
    sponsor_name: Optional[str]
    department: Optional[str]
    ite_number: Optional[int]
    prst_date: Optional[date]
    ite_start: Optional[date]
    ite_finish: Optional[date]
    sponsor_evl_date: Optional[date]
    completed_evl_date: Optional[date]
    completed_form_date: Optional[date]
    ite_detail_date: Optional[date]
    ite_prst_date: Optional[date]
    cocode: Optional[str]

class ITEDetailCreate(ITEDetailBase):
    ite_id: int

class ITEDetailUpdate(ITEDetailBase):
    pass